<{include file="app/header.tpl"}>

	<style>

	.pay-title { font-size: 14px; color: #9ACD32; text-align: center; margin: 20px 0; }

	.pay-btn { display: block; width:280px; height:50px; margin: 0 auto; border-radius: 15px;background-color:#FE6714; border: 0 #FE6714 solid; color:white;  font-size:16px; }

	</style>

    <script type="text/javascript">
	//调用微信JS api 支付
	function jsApiCall()
	{
		WeixinJSBridge.invoke(
			'getBrandWCPayRequest',
			<{$paymentParam}>,
			function(res){
				WeixinJSBridge.log(res.err_msg);
				//alert(res.err_code+res.err_desc+res.err_msg);
                window.location.assign('/order/payresult/<{$orderNo}>');
			}
		);
	}

	function callpay()
	{
		if (typeof WeixinJSBridge == "undefined"){
		    if( document.addEventListener ){
		        document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
		    }else if (document.attachEvent){
		        document.attachEvent('WeixinJSBridgeReady', jsApiCall);
		        document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
		    }
		}else{
		    jsApiCall();
		}
	}

	</script>

	<p class="pay-title">该笔订单支付金额为<span style="color:#f00;font-size:50px"><{$orderMoney}></span>元</p>


	<button class="pay-btn" type="button" onclick="callpay()">立即支付</button>


<{include file="app/footer.tpl"}>
